SmartFTP FTP Library
Example

C++, C#

SetUnixPermissions("myfile.pl", 0775); // note the 0 octal prefix

VB

SetUnixPermissions("myfile.pl", 509)

will both result in the following string sent to the server: 

"SITE CHMOD myfile.pl 755"

Copyright (c) by SmartSoft Ltd. All rights reserved.